//
//  ZZArenaController.m
//  NetesaeLottery
//
//  Created by 周英培 on 16/8/1.
//  Copyright © 2016年 周英培. All rights reserved.
//

#import "ZZArenaController.h"

@interface ZZArenaController ()

@property (nonatomic,weak) IBOutlet UISegmentedControl *seg;

@end

@implementation ZZArenaController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    
    self.view.layer.contents = (__bridge id _Nullable)([UIImage imageNamed:@"NLArenaBackground"].CGImage);
    
    [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"NLArenaNavBar64"] forBarMetrics:UIBarMetricsDefault];
    
    [self.seg setBackgroundImage:[UIImage imageNamed:@"CPArenaSegmentBG"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
    
    [self.seg setBackgroundImage:[UIImage imageNamed:@"CPArenaSegmentSelectedBG"] forState:UIControlStateSelected barMetrics:UIBarMetricsDefault];
    
    [self.seg setTitleTextAttributes:@{
                                      NSForegroundColorAttributeName:[UIColor whiteColor]
                                      } forState:UIControlStateNormal];
    
    [self.seg setTitleTextAttributes:@{
                                      NSForegroundColorAttributeName:[UIColor whiteColor]
                                      } forState:UIControlStateNormal];
    
    
    
}



@end
